package com.yuyou.fn.settlement.service;

import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.common.util.Principals;
import com.yuyou.fn.settlement.entity.NewPayRecord;
import com.github.wens.framework.service.ISuperService;
import com.yuyou.fn.settlement.vo.PayRecordQueryVo;
import com.yuyou.fn.settlement.vo.PayWay;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 * NewPayRecord 表数据服务层接口
 *
 */
public interface INewPayRecordService extends ISuperService<NewPayRecord,Long> {


    void savePayRecord(Long courseOrderId, int busType, boolean firstPay , BigDecimal payAmount, Long chargeCampusId, List<PayWay> payWays, String extra, Principals.Principal principal);

    List<NewPayRecord> findByBusOrderId(Long busOrderId);

    List<NewPayRecord> findByBusOrderIds(List<Long> busOrderIds);

    Page<NewPayRecord> findPayRecordByQuery(PayRecordQueryVo payRecordQueryVo, int pageNo, int pageSize);

    NewPayRecord findFirstPayByBusOrderId(long courseOrderId);

}